package com.freshmarket.freshmarket.dao;

import com.freshmarket.freshmarket.entity.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Squirrel
 * @since 2020-09-04
 */
public interface OrdersMapper extends BaseMapper<Orders> {

    public List<Orders> selectPersonOrdersAll(@Param("pageStart") int pageStart,
                                              @Param("pageSize") int pageSize,
                                              @Param("userId") Integer userId,
                                              @Param("ordersStatus") String ordersStatus)throws Exception;
    public int selectPageCount(@Param("userId") Integer userId,
                               @Param("ordersStatus")String ordersStatus)throws Exception;
}
